package com.kili.file.enums;

/**
 * @author Gordon
 * @version 2019/3/27
 */
public enum ResponseCode {

    SUCCESS(200, "SUCCESS"),
    NOT_FOUND(404, "Not found"),
    INTERNAL_ERROR(500, "Internal error"),
    INVALID_STATE(600, "Invalid state"),
    INVALID_REQUEST(401, "Invalid request"),
    INVALID_FILE(400, "Invalid file"),
    FILE_IS_NULL(402, "Uploaded files do not exist"),
    UPLOAD_ERROR(403, "upload error");

    private int    code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
